package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.BuyCartBean;
import com.project.bean.BuyDetailBean;
import com.project.bean.SaleCartBean;
import com.project.bean.SaleDetailBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ISaleDetailMapper extends BaseMapper<SaleDetailBean> {
    /**
     * 按销售车集合添加订单明细
     * @param saleId 销售车编号
     * @param saleCartList
     */
    public void addBySaleCartList(@Param("saleId") Integer saleId, @Param("saleCartList") List<SaleCartBean> saleCartList);

    /**
     * 按销售订单编号查询销售明细
     * @param saleId 销售订单编号
     * @return 销售明细集合
     */
    public List<SaleDetailBean> findBySale(Integer saleId);

}
